﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = IndustrialModules
		Group                          = TerraformingModules
		Size                           = Medium
		Module                         = terraformer module
		CpuUsage                       = 15.00 TF
		ReactorUsage                   = 55.00 RP
		Type                           = Active
		Slot                           = Industrial
		TechnologicalLevel             = T1
		Mass                           = 0.50 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		AccumulatorConsumption         = 25.00 AP
		CycleTime                      = 18.00 sec
		OptimalRange                   = 150 m
		AmmoChargeType                 = terraforming charges
		AmmoChargeCapacity             = 150 pcs
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// terraformer module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:55</remarks>
    public sealed class TerraformerModule : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="TerraformerModule"/> class.
        /// </summary>
        public TerraformerModule()
            : base(
            "Terraformer module",
            "",
            ModuleMetaGroupsEnum.Industrial,
            ModuleGroupsEnum.TerraformingModules,
            TechnologyLevelsEnum.Level1,
            SizesEnum.Medium,
            new LazyFeature[] { 
				new LazyFeature(typeof(BuildingCpuUsage<double>),15.00),
				new LazyFeature(typeof(BuildingReactorUsage<double>),55.00),
				new LazyFeature(typeof(ModuleMass<double>),0.50),
				new LazyFeature(typeof(AccumulatorUsage<double>),25.00),
				new LazyFeature(typeof(TerraformerCycleTime<double>),18.00),
				new LazyFeature(typeof(MinerOptimal<double>),150),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.TerraformingCharges),
				new LazyFeature(typeof(AmmoCapacity<double>),150), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 0.50 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Industrial; }
        }
    }
}